//
//  CMSChartsContentView.h
//  CMSCharts
//
//  Created by symbio on 2023/2/15.
//

#import <UIKit/UIKit.h>
#import <Charts/Charts-Swift.h>
#import "CMSChartsContentModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface CMSChartsContentView : UIView
@property (nonatomic, strong) CombinedChartView *chartsView;

@property (nonatomic, strong) CMSChartsContentModel *model;

/// 手势更新同步
@property (nonatomic, strong) void(^updateTouchBlock)(CGAffineTransform transform);
/// 顶部按钮点击事件回调
@property (nonatomic, strong) void(^didSelectItemBlock)(NSInteger index, NSString *title);
@property (nonatomic, strong) void(^chartValueSelectedBlock)(ChartViewBase *chartView, ChartDataEntry *entry, ChartHighlight *highlight);
@property (nonatomic, strong) void(^chartValueNothingSelectedBlock)(ChartViewBase *chartView);

/// 当前手势触发时是否高亮显示
@property (nonatomic, strong) BOOL(^chartViewCanHighlight)(ChartViewBase *chartView, UIGestureRecognizer *recognizer);
@end

NS_ASSUME_NONNULL_END

